#ifndef XGE_GRAPHICS_G_FLOATHELPER_H_
#define XGE_GRAPHICS_G_FLOATHELPER_H_
#include "xge_common_config.h"
#include <cmath>


namespace {

static const float kFloatZeroThreshold = 0.00001f;

}

#define FLOAT_ZERO(FloatValue) (abs( (double)(FloatValue) ) < kFloatZeroThreshold) 
#define FLOAT_EQUAL(LeftValue,RightValue) (abs( (double)((LeftValue)-(RightValue)) < kFloatZeroThreshold)

#endif// XGE_GRAPHICS_G_FLOATHELPER_H_ 